<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/logo.png" />
    <HelloWorld msg="Welcome to Your Vue.js App" />
    <div>
      Lorem ipsum, dolor sit amet consectetur adipisicing elit. Quod, quas!
      Debitis, temporibus inventore, tempora corrupti quasi quae, alias ut
      delectus reiciendis dolore ipsam reprehenderit pariatur. Aperiam
      aspernatur quos saepe recusandae!
    </div>
  </div>
</template>

<script>
// @ is an alias to /src
import { yan, jokes_list } from '@/api/home'
import HelloWorld from '@/components/HelloWorld.vue'

export default {
  name: 'Home',
  components: {
    HelloWorld
  },
  mounted() {
    yan().then(res => {
      console.log(res)
    })
    jokes_list().then(res => {
      console.log(res)
    })
  }
}
</script>
<style lang="scss" scoped>
.home {
  color: $color-red;
}
</style>
